package person.bing.fbcloud.brushQuestions.thread.WaitNotify;

/**
 * 生产者线程
 *
 * @author: mengfanbing
 * @date: 2020/5/28 11:33
 */
public class Producer implements Runnable {
    @Override
    public synchronized void run() {
        System.out.println("库存=" + Depository.increase());
        try {
            this.wait(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
//        while (true){
//        }
    }
}
